package com.app.team.liquid;
//============================================================================
//Name        : ForumMenu.java
//Author      : Kyle Bartush
//Version     : 0.1
//Description : First screen the user sees after the splash screen.
//				Includes all general options, and sign in capabilities. 
//Future Goals: Implement the ability to sign in, and store user information
//				for automatic signing in.
//============================================================================

import android.app.Activity;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.TextView;

public class Menu extends Activity implements OnClickListener {

	EditText etUser, etPass;
	Button bLogin, bForum, bPrefs;
	CheckBox cbRem;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menu);
		initUI();

	}

	private void initUI() {
		etUser = (EditText) findViewById(R.id.etUser);
		etPass = (EditText) findViewById(R.id.etPassword);
		bLogin = (Button) findViewById(R.id.bLogin);
		bForum = (Button) findViewById(R.id.bForum);
		bPrefs = (Button) findViewById(R.id.bPrefs);
		cbRem = (CheckBox) findViewById(R.id.cbRememberMe);

		bLogin.setOnClickListener(this);
		bForum.setOnClickListener(this);
		bPrefs.setOnClickListener(this);
	}

	public void onClick(View v) {

		switch (v.getId()) {

		case R.id.bLogin:

			break;
		case R.id.bForum:
			Intent b = new Intent("com.app.team.liquid.FORUMMENU");
			startActivity(b);
			break;
		case R.id.bPrefs:
			Intent c = new Intent("com.app.team.liquid.THREADVIEW");
			startActivity(c);
			break;

		}

	}

}
